package com.hundsun.cprs.yyt.service.trade.enums;

import java.util.HashMap;
import java.util.Map;

public enum EnumEntustTag {

    OLD_USER(1, "老用户"),

    NEW_USER(2, "新用户");

    EnumEntustTag(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private Integer code;

    private String  desc;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static Map<Integer, String> toMap() {
        Map<Integer, String> enumDataMap = new HashMap<Integer, String>();
        for (EnumEntustTag type : EnumEntustTag.values()) {
            enumDataMap.put(type.getCode(), type.getDesc());
        }
        return enumDataMap;
    }
}
